package com.zhz.system.contract.enums;

import com.zhz.common.tool.mybatisplus.base.core.enums.EnumValueResolver;
import com.zhz.common.tool.mybatisplus.base.core.enums.IEnum;
import lombok.AllArgsConstructor;

/**
 * @author zhouhengzhe
 * @date 2023/5/27
 */
@AllArgsConstructor
public enum UserLevelEnum implements EnumValueResolver<UserLevelEnum, Integer>, IEnum<Integer> {

    /**
     * 普通用户
     */
    USER(1, "user"),
    /**
     * 管理员
     */
    CO_ADMIN(2, "coAdmin"),

    /**
     * 企业管理员
     */
    SAAS_ADMIN(3, "saasAdmin");

    private final Integer code;
    private final String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}